from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter(trailing_slash=False)
router.register('staff',views.StaffViewSet,basename='staff')
app_name = 'staff'
urlpatterns = [
    path('dapartments', views.DepartmentListView.as_view(), name='dapartments'),
    path('download', views.StaffDownloadView.as_view(), name='download_staff'),
    path('upload', views.StaffUploadView.as_view(), name='upload_staff'),
    path('active',views.ActiveStaffView.as_view(),name='active_staff'),
    path('test/celery',views.TestCeleryView.as_view(),name='test_celery')
]+router.urls

